package com.maybach.core.form.user;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created by houenxun on 16/1/31.
 */
@Data
public class UserForm implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * This field corresponds to the database column b2b_user.id
	 */
	private Long id;

	/**
	 * This field corresponds to the database column b2b_user.login_name
	 */
	@NotBlank
	private String loginName;

	/**
	 * This field corresponds to the database column b2b_user.user_name
	 */
	private String userName;

	/**
	 * This field corresponds to the database column b2b_user.real_name
	 */
	@NotBlank
	private String realName;

	/**
	 * This field corresponds to the database column b2b_user.cert_no
	 */
	@NotBlank
	private String certNo;

	/**
	 * This field corresponds to the database column b2b_user.cert_imgs
	 */
	@NotEmpty
	private List<String> certImgs;

	/**
	 * This field corresponds to the database column b2b_user.visiting_card_imgs
	 */
	@NotEmpty
	private List<String> visitingCardImgs;

	/**
	 * This field corresponds to the database column b2b_user.mobile
	 */
	private String mobile;

	/**
	 * This field corresponds to the database column b2b_user.password
	 */
	private String password;

	/**
	 * This field corresponds to the database column b2b_user.partner_id
	 */
	private Long partnerId;

	/**
	 * This field corresponds to the database column b2b_user.status
	 */
	private Integer status;

	private String certificateCode;

	/**
	 * This field corresponds to the database column b2b_user.out_invite_code
	 */
	private String outInviteCode;

	/**
	 * This field corresponds to the database column b2b_user.portrait_imgs
	 */
	private String portraitImgs;

	/**
	 * This field corresponds to the database column b2b_user.descri
	 */
	private String descri;

	/**
	 * This field corresponds to the database column b2b_user.memo
	 */
	private String memo;

	private String extNo;

}
